package com.ieasy.module.site.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ieasy.basic.dao.ExtFieldEntity;

@Entity
@Table(name = "ieasy_site_doc")
public class DocEntity extends ExtFieldEntity {

	//文章标题
	private String pageTitle ;
	
	//文章原标题
	private String originTitle ;
	
	//作者
	private String author ;
	
	//文章属性（视频，附件，热点，推荐，图片）
	private String contentAttr ;
	
	//文章摘要
	private String remark ;
	
	//文章关键字
	private String keywork ;
	
	//标签
	private String tag ;
	
	//权重（1~100）
	private int weight ;
	
	//是否评论（-1不评论，1评论）
	private Integer comment ;
	
	//文章是否加热
	private Integer pageHot ;
	
	//文件LOGO图片路径
	private String pageLogo ;
	
	//文件内容
	private String centent ;
	
	//是否发布(0不发布，1发布)
	private int isPush ;
	
	private ColumnEntity col ;

	public String getPageTitle() {
		return pageTitle;
	}

	public int getIsPush() {
		return isPush;
	}

	public void setIsPush(int isPush) {
		this.isPush = isPush;
	}

	public void setPageTitle(String pageTitle) {
		this.pageTitle = pageTitle;
	}

	public String getOriginTitle() {
		return originTitle;
	}

	public void setOriginTitle(String originTitle) {
		this.originTitle = originTitle;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getContentAttr() {
		return contentAttr;
	}

	public void setContentAttr(String contentAttr) {
		this.contentAttr = contentAttr;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getKeywork() {
		return keywork;
	}

	public void setKeywork(String keywork) {
		this.keywork = keywork;
	}

	public String getTag() {
		return tag;
	}

	public void setTag(String tag) {
		this.tag = tag;
	}

	public int getWeight() {
		return weight;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}

	public Integer getComment() {
		return comment;
	}

	public void setComment(Integer comment) {
		this.comment = comment;
	}

	public Integer getPageHot() {
		return pageHot;
	}

	public void setPageHot(Integer pageHot) {
		this.pageHot = pageHot;
	}

	public String getPageLogo() {
		return pageLogo;
	}

	public void setPageLogo(String pageLogo) {
		this.pageLogo = pageLogo;
	}

	@Lob @Column(length=16777216)
	public String getCentent() {
		return centent;
	}

	public void setCentent(String centent) {
		this.centent = centent;
	}

	@ManyToOne
	@JoinColumn(name = "pid")
	public ColumnEntity getCol() {
		return col;
	}

	public void setCol(ColumnEntity col) {
		this.col = col;
	}
}
